<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .head-nav{
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-bottom: 1px solid #EEF0F4;
        }
        body{
            background: #F9F9FB;
        }
        img{
            width: 100%;
        }

        .list{
            margin: 20px;
        }

        /* 滚动导航 */
        .roll-nav ul{
            white-space: nowrap; 
            overflow-x: scroll; 
            overflow-y: hidden; 
            display: flex;
            align-items: center;
            box-sizing: border-box; 
            list-style: none;
            padding: 0px;
            background: #fff;
        }
        li {
            margin: 10px 5px;
            padding: 5px 8px;
            text-align: center;
            background: #EDEDED;
        }

        ul::-webkit-scrollbar { /* 隐藏滚动条 */
            display: none;
        }

        /* 左对齐导航 */
        .elasticity-nav{
            display: flex;
            background: #fff;
        }
        .elasticity-nav div{
            font-size: 12px;
            margin: 10px 5px;
            padding: 5px 8px;
            text-align: center;
            background: #EDEDED;
        }


    </style>
</head>
<body>
    <div class="head-nav">
        <div onclick="history.go(-1)">《</div>
        <div>导航栏</div>
        <div></div>
    </div>

    <div class="list">
        <!-- 滚动导航 -->
        <div style="margin-top: 20px;">滚动导航</div>
        <div class="roll-nav">
            <ul>
                <li>热兑商品</li>
				<li>积分现金购</li>
				<li>自有潮品</li>
				<li>虚拟礼品</li>
				<li>超值好券</li>
            </ul>
        </div>
        
        <!-- 左对齐导航 -->
        <div style="margin-top: 20px;">左对齐导航</div>
        <div class="elasticity-nav">
            <div>热兑商品</div>
			<div>积分现金购</div>
			<div>自有潮品</div>
			<div>虚拟礼品</div>
        </div>
    </div>
</body>
</html>